/**
 * 
 */
package com.hds.modules.app.entity;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.util.Date;

/**
 * ClassName SMSCaptcha
 * @Function TODO
 * @date 2017年12月6日
 */
@TableName("tb_sms")
public class SMSCaptcha {
	
	/** The Constant serialVersionUID. */
	private static final long serialVersionUID = 4235298006454630664L;
	
	/**
	 * The Enum Status.
	 */
	public enum Status {
		
		/** 有效的. */
		valid,
		
		/** 无效的. */
		invalid;
	}


	/**
	 * The Enum Status.
	 */
	public enum Code {

		SUCCESS("000000"), //发送成功
		MAXLIMIT("160040"); //今日发送已达上限

		private String code;

		Code(String code) {
			this.code = code;
		}

		public String getCode() {
			return code;
		}
	}
	
	/** The prop id. */
	public static String PROP_ID = "id";
	
	
	/** The prop captcha. */
	public static String PROP_CAPTCHA = "captcha";
	
	/** The prop message id. */
	public static String PROP_MESSAGE_ID = "messageId";
	
	/** The prop send time. */
	public static String PROP_SEND_TIME = "sendTime";
	
	/** The prop generate time. */
	public static String PROP_GENERATE_TIME = "generateTime";
	
	/** The prop status. */
	public static String PROP_STATUS = "status";
	
	/** The id. */
	@TableId(type = IdType.UUID)
	private String id;
	
	/** 手机号码. */
	private String mobile;
	
	/** 验证码. */
	private String captcha;
	
	/** 短信唯一标识符. */
	private String messageId;
	
	/** 验证码发送时间. */
	private Date sendTime;
	
	/** 验证码生成时间. */
	private Date generateTime;
	
	/** 验证码状态(1:有效、0:失效). */
	private int status;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getCaptcha() {
		return captcha;
	}

	public void setCaptcha(String captcha) {
		this.captcha = captcha;
	}

	public String getMessageId() {
		return messageId;
	}

	public void setMessageId(String messageId) {
		this.messageId = messageId;
	}

	public Date getSendTime() {
		return sendTime;
	}

	public void setSendTime(Date sendTime) {
		this.sendTime = sendTime;
	}

	public Date getGenerateTime() {
		return generateTime;
	}

	public void setGenerateTime(Date generateTime) {
		this.generateTime = generateTime;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	

}
